#include "GLKeyboardEvent.h"


namespace mpgl_engine{ namespace application { namespace input {

	GLKeyboardEvent::GLKeyboardEvent()
		: GLButtonEvent()
	{
		m_key = GLFW_KEY_UNKNOWN;
	}

	
	GLKeyboardEvent::~GLKeyboardEvent()
	{

	}

	void GLKeyboardEvent::Update(GLFWwindow* window)
	{
		//Grab previous state
		m_currentPressType = 
			(GLButtonPressType)glfwGetKey(window, m_key);
		//Base updates event
		GLButtonEvent::Update(window);
	}
}}}